#include <stdio.h>
#define MAX 120

int main(void) {
	int num = 0;
	int i, j;
	scanf("%d", &num);
	int arr[MAX];
	int count[MAX];
	for (i = 0; i < num; i++) {
		scanf("%d", &arr[i]);
	}
	for (i = 0; i < num; i++) {
		int sum = 0;
		for (j = 0; j <= i; j++) {
			if (arr[i] > arr[j]) {
				sum++;
			}
		}
		count[i] = sum;
	}
	for (int i = 0; i < num; i++) {
		printf("%d ", count[i]);
	}
	return 0;
}